﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Framework.Mvc.AgencyPagedViewModel>" %>

<%@ Import Namespace="Framework.Mvc" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>大喜结婚网后台管理-经销商管理</title>
    <link href="../../Content/Admin.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../../Scripts/kf.js"></script>
    <style type="text/css">
        body
        {
            margin-left: 0px;
            margin-top: 0px;
            margin-right: 0px;
            margin-bottom: 0px;
            overflow: hidden;
        }
        .STYLE4
        {
            font-size: 12px;
        }
        .STYLE5
        {
            font-size: 12px;
            font-weight: bold;
        }
        .STYLE4 a
        {
            color: #000000;
            text-decoration: none;
        }
        .STYLE1
        {
            font-size: 12px;
            color: #000000;
        }
        .STYLE5
        {
            font-size: 12;
        }
        .STYLE7
        {
            font-size: 12px;
            color: #FFFFFF;
        }
        .STYLE8
        {
            font-size: 12px;
        }
        -- > .STYLE6
        {
            color: #000000;
            font-size: 12;
        }
        .STYLE10
        {
            color: #000000;
            font-size: 12px;
        }
        .STYLE19
        {
            color: #344b50;
            font-size: 12px;
        }
        .STYLE21
        {
            font-size: 12px;
            color: #3b6375;
        }
        .STYLE22
        {
            font-size: 12px;
            color: #295568;
        }
        .STYLE21 a
        {
            color: #3B6375;
            text-decoration: none;
        }
        .STYLE21 a:hover
        {
            color: #3B6375;
            text-decoration: underline;
        }
    </style>
</head>
<body>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td>
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td height="57" background="../../images/main_03.gif">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td width="353" height="57">
                                        <img src="../../images/main_01.gif" width="327" height="57" />
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td width="281" valign="bottom">
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                                <td width="33" height="27">
                                                    <img src="../../images/main_05.gif" width="33" height="27" />
                                                </td>
                                                <td width="248" background="../../images/main_06.gif">
                                                    <table width="225" border="0" align="center" cellpadding="0" cellspacing="0">
                                                        <tr>
                                                            <td height="17">
                                                                <div align="right">
                                                                    <a href="#">
                                                                        <img src="../../images/pass.gif" width="69" height="17" border="0" /></a></div>
                                                            </td>
                                                            <td>
                                                                <div align="right">
                                                                    <a href="#">
                                                                        <img src="../../images/user.gif" width="69" height="17" border="0" /></a></div>
                                                            </td>
                                                            <td>
                                                                <div align="right">
                                                                    <a href="#">
                                                                        <img src="../../images/quit.gif" width="69" height="17" border="0" /></a></div>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td height="40" background="../../images/main_10.gif">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td width="96" height="40" background="../../images/main_07.gif">
                                        &nbsp;
                                    </td>
                                    <td>
                                    </td>
                                    <td width="248">
                                        &nbsp;
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td height="30" background="../../images/main_31.gif">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td width="8" height="30">
                                        <img src="../../images/main_28.gif" width="8" height="30" />
                                    </td>
                                    <td width="147" background="../../images/main_29.gif">
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                                <td width="24%">
                                                    &nbsp;
                                                </td>
                                                <td width="43%" height="20" valign="bottom" class="STYLE1">
                                                    管理菜单
                                                </td>
                                                <td width="33%">
                                                    &nbsp;
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                    <td width="39">
                                        <img src="../../images/main_30.gif" width="39" height="30" />
                                    </td>
                                    <td>
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                                <td height="20" valign="bottom">
                                                    <span class="STYLE1">当前登录用户：admin &nbsp;用户角色：管理员</span>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                    <td width="17">
                                        <img src="../../images/main_32.gif" width="17" height="30" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <table width="100%" height="80%" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td width="8" background="../../images/main_28.gif">
                &nbsp;
            </td>
            <td width="147" valign="top">
                <table width="147" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                        <td height="23" background="../../images/main_34.gif">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td width="9%">
                                        &nbsp;
                                    </td>
                                    <td width="83%">
                                        <div align="center" class="STYLE5">
                                            系统管理</div>
                                    </td>
                                    <td width="8%">
                                        &nbsp;
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td valign="top">
                            <div align="center">
                                <table width="82%" border="0" align="center" cellpadding="0" cellspacing="7">
                                    <tr>
                                        <td>
                                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                <tr>
                                                    <td width="33" height="28">
                                                        <img src="../../images/main_52.gif" width="28" height="28" alt="" />
                                                    </td>
                                                    <td width="99">
                                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                            <tr>
                                                                <td height="23" class="STYLE4" style="cursor: hand" onmouseover="this.style.backgroundImage='url(images/tab_bg.gif)';this.style.borderStyle='solid';this.style.borderWidth='1';borderColor='#adb9c2'; "
                                                                    onmouseout="this.style.backgroundImage='url()';this.style.borderStyle='none'">
                                                                    <frame name="main" marginwidth="0" marginheight="0" src="right.html">
                                                                    <%: Html.ActionLink("商家管理", "List","AgencyManager") %>
                                                                    </FRAMESET>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td height="38">
                                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                <tr>
                                                    <td width="33" height="28">
                                                        <img src="../../images/main_46.gif" width="28" height="28" alt="" />
                                                    </td>
                                                    <td width="99">
                                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                            <tr>
                                                                <td height="23" class="STYLE4" style="cursor: hand" onmouseover="this.style.backgroundImage='url(images/tab_bg.gif)';this.style.borderStyle='solid';this.style.borderWidth='1';borderColor='#adb9c2'; "
                                                                    onmouseout="this.style.backgroundImage='url()';this.style.borderStyle='none'">
                                                                    <%: Html.ActionLink("分类管理", "ArticleCategory", "Admin")%>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td height="38">
                                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                <tr>
                                                    <td width="33" height="28">
                                                        <img src="../../images/main_50.gif" width="28" height="28" alt="" />
                                                    </td>
                                                    <td width="99">
                                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                            <tr>
                                                                <td height="23" class="STYLE4" style="cursor: hand" onmouseover="this.style.backgroundImage='url(images/tab_bg.gif)';this.style.borderStyle='solid';this.style.borderWidth='1';borderColor='#adb9c2'; "
                                                                    onmouseout="this.style.backgroundImage='url()';this.style.borderStyle='none'">
                                                                    <%: Html.ActionLink("文章管理","List", "Article") %>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td height="38">
                                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                <tr>
                                                    <td width="33" height="28">
                                                        <img src="../../images/main_40.gif" width="28" height="28" alt="" />
                                                    </td>
                                                    <td width="99">
                                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                            <tr>
                                                                <td height="25" class="STYLE4" style="cursor: hand" onmouseover="this.style.backgroundImage='url(images/tab_bg.gif)';this.style.borderStyle='solid';this.style.borderWidth='1';borderColor='#adb9c2'; "
                                                                    onmouseout="this.style.backgroundImage='url()';this.style.borderStyle='none'">
                                                                    <%: Html.ActionLink("广告管理", "List", "Advertising") %>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td height="38">
                                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                <tr>
                                                    <td width="33" height="28">
                                                        <img src="../../images/main_40.gif" width="28" height="28" alt="" />
                                                    </td>
                                                    <td width="99">
                                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                            <tr>
                                                                <td height="25" class="STYLE4" style="cursor: hand" onmouseover="this.style.backgroundImage='url(images/tab_bg.gif)';this.style.borderStyle='solid';this.style.borderWidth='1';borderColor='#adb9c2'; "
                                                                    onmouseout="this.style.backgroundImage='url()';this.style.borderStyle='none'">
                                                                    <%: Html.ActionLink("友情链接管理", "List", "FriendlyLink")%>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td height="38">
                                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                <tr>
                                                    <td width="33" height="28">
                                                        <img src="../../images/main_40.gif" width="28" height="28" alt="" />
                                                    </td>
                                                    <td width="99">
                                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                            <tr>
                                                                <td height="25" class="STYLE4" style="cursor: hand" onmouseover="this.style.backgroundImage='url(images/tab_bg.gif)';this.style.borderStyle='solid';this.style.borderWidth='1';borderColor='#adb9c2'; "
                                                                    onmouseout="this.style.backgroundImage='url()';this.style.borderStyle='none'">
                                                                    <%: Html.ActionLink("退出登陆", "Logoff", "Home")%>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td height="19" background="../../images/main_69.gif">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td>
                                        <div align="center">
                                            <span class="STYLE4">大喜结婚网</span></div>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
            <td width="10" bgcolor="#add2da">
                &nbsp;
            </td>
            <td valign="top">
                <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                        <td height="30">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td height="24" bgcolor="#353c44">
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                                <td>
                                                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                        <tr>
                                                            <td width="6%" height="19" valign="bottom">
                                                                <div align="center">
                                                                    <img src="../../images/tb.gif" width="14" height="14" /></div>
                                                            </td>
                                                            <td width="94%" valign="bottom">
                                                                <span class="STYLE7">产品列表</span>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#a8c7ce">
                                <tr>
                                    <td width="16%" height="25" bgcolor="d3eaef" class="STYLE6">
                                        <div align="center">
                                            <span class="STYLE10">用户名</span></div>
                                    </td>
                                    <td width="20%" height="25" bgcolor="d3eaef" class="STYLE6">
                                        <div align="center">
                                            <span class="STYLE10">公司名称</span></div>
                                    </td>
                                    <td width="16%" height="25" bgcolor="d3eaef" class="STYLE6">
                                        <div align="center">
                                            <span class="STYLE10">注册时间 </span>
                                        </div>
                                    </td>
                                    <td width="12%" height="25" bgcolor="d3eaef" class="STYLE6">
                                        <div align="center">
                                            <span class="STYLE10">审核状态</span></div>
                                    </td>
                                    <td width="14%" height="25" bgcolor="d3eaef" class="STYLE6">
                                        <div align="center">
                                            <span class="STYLE10">等级</span>
                                        </div>
                                    </td>
                                    <td width="14%" height="25" bgcolor="d3eaef" class="STYLE6">
                                        <div align="center">
                                            <span class="STYLE10">基本操作</span></div>
                                    </td>
                                </tr>
                                <%foreach (var item in this.Model.List)
                                  {
                                %>
                                <tr>
                                    <td height="20" align="center" bgcolor="#FFFFFF" class="STYLE19">
                                        <%=Html.ActionLink(item.Name, "Modify", "AgencyManager", new { agencyIdentity = item.Id }, new { target = "_blank" })%>
                                    </td>
                                    <td height="20" align="center" bgcolor="#FFFFFF" class="STYLE19">
                                        <%=Html.ActionLink(item.DisplayName, "Modify", "AgencyManager", new { agencyIdentity = item.Id }, new { target = "_blank" })%>
                                    </td>
                                    <td height="20" align="center" bgcolor="#FFFFFF" class="STYLE19">
                                        <%=Html.ActionLink(item.Created.ToLongDateString() + item.Created.ToLongTimeString(), "Modify", "AgencyManager", new { agencyIdentity = item.Id }, new { target = "_blank" })%>
                                    </td>
                                    <td align="center" bgcolor="#FFFFFF" class="STYLE19">
                                        <%if (item.IsVerification)
                                          {
                                        %>
                                        <%: Html.ActionLink("通过", "Verification", new { identity = item.Id, isVerification = false }, new { })%>
                                        <%
                                          }
                                          else
                                          {
                                        %>
                                        <%: Html.ActionLink("不通过", "Verification", new { identity = item.Id, isVerification = true }, new { })%>
                                        <%
                                          }
                                        %>
                                    </td>
                                    <%using (Html.BeginForm("SetLevel", "AgencyManager"))
                                      {
                                    %>
                                    <td align="center" bgcolor="#FFFFFF" class="STYLE19">
                                        <%: Html.TextBox("level",item.Level)%>
                                        <%: Html.Hidden("agencyIdentity", item.Id)%>
                                    </td>
                                    <td height="20" bgcolor="#FFFFFF">
                                        <div align="center" class="STYLE21">
                                            <input type="submit" value="提交" />
                                            |
                                            <%: Html.ActionLink("删除", "Delete", new AgencyDeleteViewModel { AgencyName = item.Name, Identity = item.Id })%></div>
                                    </td>
                                    <%
                                      } 
                                    %>
                                </tr>
                                <%
                                  }
                                %>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td height="30">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td width="33%">
                                        <div align="left">
                                            <span class="STYLE22">&nbsp;&nbsp;&nbsp;&nbsp;共有<strong><%=this.Model.Total %></strong>
                                                条，当前第<strong><%=this.Model.CurrentPage %></strong> 页，共 <strong>
                                                    <%=this.Model.Pages %></strong> 页</span></div>
                                    </td>
                                    <td width="67%">
                                        <table width="312" border="0" align="right" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td width="49">
                                                    <div align="center">
                                                        <a href="<%=Url.Action("List", "AgencyManager")%>">
                                                            <img src="../../images/main_54.gif" width="40" height="15" alt="" /></a></div>
                                                </td>
                                                <td width="49">
                                                    <div align="center">
                                                        <a href="<%=Url.Action("List", "AgencyManager", new { currentPage = this.Model.PrePage, pageSize = this.Model.PageSize })%>">
                                                            <img src="../../images/main_56.gif" width="45" height="15" alt="" /></a>
                                                    </div>
                                                </td>
                                                <td width="49">
                                                    <div align="center">
                                                        <a href="<%=Url.Action("List", "AgencyManager", new { currentPage = this.Model.NextPage, pageSize = this.Model.PageSize })%>">
                                                            <img src="../../images/main_58.gif" width="45" height="15" alt="" /></a>
                                                    </div>
                                                </td>
                                                <td width="49">
                                                    <div align="center">
                                                        <img src="../../images/main_60.gif" width="40" height="15" alt="" />
                                                    </div>
                                                </td>
                                                <td width="37" class="STYLE22">
                                                    <div align="center">
                                                        转到</div>
                                                </td>
                                                <td width="22">
                                                    <div align="center">
                                                        <input type="text" name="textfield" id="textfield" style="width: 20px; height: 12px;
                                                            font-size: 12px; border: solid 1px #7aaebd;" />
                                                    </div>
                                                </td>
                                                <td width="22" class="STYLE22">
                                                    <div align="center">
                                                        页</div>
                                                </td>
                                                <td width="35">
                                                    <img src="../../images/main_62.gif" width="26" height="15" alt="" />
                                                </td>
                                            </tr>
                                        </table>
                                        <%
                                            var i = this.Model.PrePage - 1;
                                            var ii = i - 1;
                                            var iii = this.Model.NextPage + 1;
                                        %>
                                        <%: Html.ActionLink(ii.ToString(), "List", "AgencyManager", new { currentPage = ii, pageSize = this.Model.PageSize }, new { })%>
                                        <%: Html.ActionLink(i.ToString(), "List", "AgencyManager", new { currentPage = i, pageSize = this.Model.PageSize }, new { })%>
                                        <%: Html.ActionLink(this.Model.PrePage.ToString(), "List", "AgencyManager", new { currentPage = this.Model.PrePage, pageSize = this.Model.PageSize }, new { })%>
                                        <%: Html.ActionLink(this.Model.CurrentPage.ToString(), "List", "AgencyManager")%>
                                        <%: Html.ActionLink(this.Model.NextPage.ToString(), "List", "AgencyManager", new { currentPage = this.Model.NextPage, pageSize = this.Model.PageSize }, new { })%>
                                        <%: Html.ActionLink(iii.ToString(), "List", "AgencyManager", new { currentPage = iii, pageSize = this.Model.PageSize }, new { })%>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
            <td width="8" bgcolor="#353c44">
                &nbsp;
            </td>
        </tr>
    </table>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td background="../../images/main_71.gif" style="height: 11px; table-layout: fixed"
                width="165" height="11">
                &nbsp;
            </td>
            <td background="../../images/main_72.gif" style="height: 11px; table-layout: fixed">
                &nbsp;
            </td>
            <td background="../../images/main_74.gif" style="height: 11px; table-layout: fixed"
                width="17">
                &nbsp;
            </td>
        </tr>
    </table>
</body>
</html>
